package ch4;

public class DriverTest {
    public static void main(String[] args) {
        Driver d=new Driver();
        d.Driver("老王",18,"男");
        Automobile au=new Automobile();
        au.show(56,6.0f);
        d.Driver(au);
        Plane p=new Plane();
        p.show(166,100000f);
        d.Driver(p);
        Tank t=new Tank();
        t.show(3000f,200);
        d.Driver(t);
        Tractor tr=new Tractor();
        tr.show(3000,5000);
        d.Driver(tr);
        Ship s=new Ship();
        s.show(1000000,1000000,1000);
        d.Driver(s);

    }
}
